import { createApp } from 'vue'
import './style.css'
import 'animate.css';
import App from './App.vue'

const app = createApp(App)

// 引入piaia
import { createPinia } from "pinia";

const pinia = createPinia();
app.use(pinia)

// 引入路由
import router from './router/index'

app.use(router)

// 引入ElementPlus
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'

app.use(ElementPlus)
import * as ElementPlusIconsVue from '@element-plus/icons-vue'


import VueAnimXyz from '@animxyz/vue3'
import '@animxyz/core' // Import css here if you haven't elsewhere

app.use(VueAnimXyz)

for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}


app.mount('#app')
